Integrand size = 35, antiderivative size = 209 \[ \int \frac {\sec ^2(e+f x)}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\frac {2 \sqrt {a+b} \cot (e+f x) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{b d f}-\frac {2 c \operatorname {EllipticPi}\left (\frac {2 d}{c+d},\arcsin \left (\frac {\sqrt {1-\sec (e+f x)}}{\sqrt {2}}\right ),\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sec (e+f x)}{a+b}} \tan (e+f x)}{d (c+d) f \sqrt {a+b \sec (e+f x)} \sqrt {-\tan ^2(e+f x)}} \]
[Out]
Time = 0.61 (sec) , antiderivative size = 209, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.086, Rules used = {4062, 3917, 4058} \[ \int \frac {\sec ^2(e+f x)}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\frac {2 \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right )}{b d f}-\frac {2 c \tan (e+f x) \sqrt {\frac {a+b \sec (e+f x)}{a+b}} \operatorname {EllipticPi}\left (\frac {2 d}{c+d},\arcsin \left (\frac {\sqrt {1-\sec (e+f x)}}{\sqrt {2}}\right ),\frac {2 b}{a+b}\right )}{d f (c+d) \sqrt {-\tan ^2(e+f x)} \sqrt {a+b \sec (e+f x)}} \]
[In]
[Out]
Rule 3917
Rule 4058
Rule 4062
Rubi steps \begin{align*} \text {integral}& = \frac {\int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx}{d}-\frac {c \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx}{d} \\ & = \frac {2 \sqrt {a+b} \cot (e+f x) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{b d f}-\frac {2 c \operatorname {EllipticPi}\left (\frac {2 d}{c+d},\arcsin \left (\frac {\sqrt {1-\sec (e+f x)}}{\sqrt {2}}\right ),\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sec (e+f x)}{a+b}} \tan (e+f x)}{d (c+d) f \sqrt {a+b \sec (e+f x)} \sqrt {-\tan ^2(e+f x)}} \\ \end{align*}
Time = 4.29 (sec) , antiderivative size = 165, normalized size of antiderivative = 0.79 \[ \int \frac {\sec ^2(e+f x)}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=-\frac {4 \cos ^2\left (\frac {1}{2} (e+f x)\right ) \sqrt {\frac {\cos (e+f x)}{1+\cos (e+f x)}} \sqrt {\frac {b+a \cos (e+f x)}{(a+b) (1+\cos (e+f x))}} \left ((c+d) \operatorname {EllipticF}\left (\arcsin \left (\tan \left (\frac {1}{2} (e+f x)\right )\right ),\frac {a-b}{a+b}\right )-2 c \operatorname {EllipticPi}\left (\frac {c-d}{c+d},\arcsin \left (\tan \left (\frac {1}{2} (e+f x)\right )\right ),\frac {a-b}{a+b}\right )\right ) \sec (e+f x)}{(c-d) (c+d) f \sqrt {a+b \sec (e+f x)}} \]
[In]
[Out]
Time = 8.54 (sec) , antiderivative size = 203, normalized size of antiderivative = 0.97
method | result | size |
default | \(\frac {2 \left (\cos \left (f x +e \right )+1\right ) \left (\operatorname {EllipticF}\left (\cot \left (f x +e \right )-\csc \left (f x +e \right ), \sqrt {\frac {a -b}{a +b}}\right ) c +\operatorname {EllipticF}\left (\cot \left (f x +e \right )-\csc \left (f x +e \right ), \sqrt {\frac {a -b}{a +b}}\right ) d -2 c \operatorname {EllipticPi}\left (\cot \left (f x +e \right )-\csc \left (f x +e \right ), \frac {c -d}{c +d}, \sqrt {\frac {a -b}{a +b}}\right )\right ) \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {b +a \cos \left (f x +e \right )}{\left (a +b \right ) \left (\cos \left (f x +e \right )+1\right )}}\, \sqrt {a +b \sec \left (f x +e \right )}}{f \left (c +d \right ) \left (c -d \right ) \left (b +a \cos \left (f x +e \right )\right )}\) | \(203\) |
[In]
[Out]
Timed out. \[ \int \frac {\sec ^2(e+f x)}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {\sec ^2(e+f x)}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\int \frac {\sec ^{2}{\left (e + f x \right )}}{\sqrt {a + b \sec {\left (e + f x \right )}} \left (c + d \sec {\left (e + f x \right )}\right )}\, dx \]
[In]
[Out]
\[ \int \frac {\sec ^2(e+f x)}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\int { \frac {\sec \left (f x + e\right )^{2}}{\sqrt {b \sec \left (f x + e\right ) + a} {\left (d \sec \left (f x + e\right ) + c\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {\sec ^2(e+f x)}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\int { \frac {\sec \left (f x + e\right )^{2}}{\sqrt {b \sec \left (f x + e\right ) + a} {\left (d \sec \left (f x + e\right ) + c\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sec ^2(e+f x)}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\int \frac {1}{{\cos \left (e+f\,x\right )}^2\,\sqrt {a+\frac {b}{\cos \left (e+f\,x\right )}}\,\left (c+\frac {d}{\cos \left (e+f\,x\right )}\right )} \,d x \]
[In]
[Out]